<script setup>
	import { onLoad } from '@dcloudio/uni-app'
	import { ref } from 'vue'
	
	const params = ref({})
	const webviewStyles = ref({
		progress: {
			color: "#FF3333"
		}
	})
	onLoad((option) => {
		params.value = option
		if (option.title) {
			uni.setNavigationBarTitle({
				title: option.title
			})
		}
	})
</script>

<template>
	<view v-if="params.url">
	  <web-view :webview-styles="webviewStyles" :src="`${params.url}`"></web-view>
	</view>
</template>